/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.oai;

import java.util.Properties;
import cz.mzk.oai.metadataRepository.metadata.MetadataFormat;
import cz.mzk.oai.metadataRepository.repository.collections.Item;

/**
 *
 * @author Martin Rehanek, Martin.Rehanek@gmail.com
 */
public class FileMap2ese extends AbstractCrosswalk {

    private static MetadataFormat format = MetadataFormat.ese;

    public FileMap2ese(Properties properties) {
        super(properties, format);
    }

    /**
     * Can this nativeItem be represented in ESE format?
     * @param nativeItem a record in native format
     * @return true if ESE format is possible, false otherwise.
     */
    public boolean isAvailableFor(Object nativeItem) {
            Item item = (Item) nativeItem;
            return item.hasRecord(format);
        }
    }
